﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Printing;

namespace HomeDms
{
    public partial class PrePrintForm : Form
    {
        public PrePrintForm()
        {
            InitializeComponent();
        }

        private PrintDocument printDocument = null;

        public PrintDocument PrintDocument
        {
            get
            {
                return printDocument;
            }
            set
            {
                printDocument = value;
                printDialog1.Document = printDocument;
                pageSetupDialog1.Document = printDocument;
            }
        }

        private void settingsButton_Click(object sender, EventArgs e)
        {
            printDialog1.ShowDialog(this);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            pageSetupDialog1.ShowDialog(this);
        }
    }
}
